package org.example.spring.carsalemanagementsystem.dao;

import org.apache.ibatis.annotations.*;
import org.example.spring.carsalemanagementsystem.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface UserDao {
    User selectById(@Param("userid") String userid);
    User selectByUserName(@Param("username") String username);
    void deleteById(@Param("userid") String userid);
    void insertOne(User user);
    void updateById(User user);
    List<User> findList();
}